#include <QtGui/QApplication>
#include "mainwindow.h"

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    QCoreApplication::setOrganizationName("Bil-TeG-2010");
    QCoreApplication::setApplicationName("QTronce");
    MainWindow w;
    Gamestate *gamestate = new OptionsGamestate(&w);
    w.setGamestate(gamestate);
    w.showFullScreen();

    QTimer timer;
    QObject::connect(&timer, SIGNAL(timeout()), &w, SLOT(updateScene()));
    timer.start(time_per_frame_c);

    return a.exec();
}
